package com.oa.bean;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class FileCabinet {

	private Integer fid;
	private String fileName;
	private Integer post_id;
	private Date postTime;
	private String stime;
	public Integer getFid() {
		return fid;
	}
	public void setFid(Integer fid) {
		this.fid = fid;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public Integer getPost_id() {
		return post_id;
	}
	public void setPost_id(Integer post_id) {
		this.post_id = post_id;
	}
	public Date getPostTime() {
		return postTime;
	}
	public void setPostTime(Date postTime) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		this.stime = sdf.format(postTime);
		this.postTime = postTime;
	}

	public String getStime() {
		return stime;
	}
	public void setStime(String stime) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			postTime = sdf.parse(stime);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.stime = stime;
	}
	
	
}
